//
//  CountryBarPlot.h
//  Balance
//
//  Created by Calvin Kuo on 12-04-23.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CorePlot-CocoaTouch.h"

/*
 To Do:
 1. Need to implement the date picker delgate to change the bar data when a new date is selected
*/ 


@interface CountryBarPlot : NSObject <CPTPlotDataSource, CPTBarPlotDelegate>{
@private
    CPTGraph *graph;
    CPTBarPlot *highBarPlot;  //current balances
    CPTBarPlot *midBarPlot;  //1-90 days delinquent amounts
    CPTBarPlot *lowBarPlot;  // 91+ day delinquent amounts
}

@property (nonatomic, retain) NSArray *countryNames;
@property (nonatomic, retain) NSArray*countryBalances;


- (id)initWithCountryNames:(NSArray *)selectedCountries andCountryBalances:(NSArray *)selectedCountryBalances;

- (void)renderInLayer:(CPTGraphHostingView *)layerHostingView withTheme:(CPTTheme *)theme;


@end
